From cbb6648205ae6945de24131942a08c5484f27f66 Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Tue, 3 Dec 2013 14:59:09 +0100 Subject: [PATCH] Update some documentation Change-Id: I6a75964d2048de451e9b01a08f87cfe1ebd842ba --- includes/cache/BacklinkCache.php | 8 ++++---- includes/cache/FileCacheBase.php | 1 + includes/cache/LinkCache.php | 1 + includes/cache/UserCache.php | 1 + 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/includes/cache/BacklinkCache.php b/includes/cache/BacklinkCache.php index 686361b20c..45d00d7b68 100644 --- a/includes/cache/BacklinkCache.php +++ b/includes/cache/BacklinkCache.php @@ -156,10 +156,10 @@ class BacklinkCache { /** * Get the backlinks for a given table. Cached in process memory only. - * @param $table String - * @param $startId Integer|false - * @param $endId Integer|false - * @param $max Integer|INF + * @param string $table + * @param int|bool $startId + * @param int|bool $endId + * @param int|INF $max * @return TitleArrayFromResult */ public function getLinks( $table, $startId = false, $endId = false, $max = INF ) { diff --git a/includes/cache/FileCacheBase.php b/includes/cache/FileCacheBase.php index d33f3f696f..0c00c6b593 100644 --- a/includes/cache/FileCacheBase.php +++ b/includes/cache/FileCacheBase.php @@ -153,6 +153,7 @@ abstract class FileCacheBase { /** * Save and compress text to the cache + * @param string $text * @return string compressed text */ public function saveText( $text ) { diff --git a/includes/cache/LinkCache.php b/includes/cache/LinkCache.php index 0d706c08cb..de2a728b06 100644 --- a/includes/cache/LinkCache.php +++ b/includes/cache/LinkCache.php @@ -78,6 +78,7 @@ class LinkCache { /** * General accessor to get/set whether SELECT FOR UPDATE should be used * + * @param $update * @return bool */ public function forUpdate( $update = null ) { diff --git a/includes/cache/UserCache.php b/includes/cache/UserCache.php index 2e4c1e99a7..cea3bf2f32 100644 --- a/includes/cache/UserCache.php +++ b/includes/cache/UserCache.php @@ -66,6 +66,7 @@ class UserCache { * * @param integer $userId * @param string $ip + * @return string * @since 1.22 */ public function getUserName( $userId, $ip ) { -- 2.20.1